package com.springlearn.springbootlearn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_user")
public class SysUser extends BaseEntity implements Serializable {
    @TableId(value="user_id",type = IdType.AUTO)
    private Integer userId;
    private String username;
    private String password;
    private String nickname;
    private String avatar;
    private String sex;
    private String phone;
    private String email;
    private Integer status;
    private Integer deleted;
    private Date createTime;
    private Date updateTime;
    @TableField("type")
    private String type;

}
